#!/bin/bash
WORK_PATH='/usr/liszter/web-css3'
cd $WORK_PATH
echo "打包"
npm run build
echo "执行构建"
docker build -t web-css3:1.0 .
echo "停止旧容器"
docker stop web-css3-container
docker rm web-css3-container
echo "启动新容器"
docker container run -p 8201:8201 --name web-css3-container -d web-css3:1.0
